<!-- 我的查询 -->

<template>
  <WebSearch class="noMargin">
    <template #btn>
      <ParamRadio bind="statisticType" :dict="DICT.CATEGORY" isBtn @change="toChange" />
    </template>

    <ParamSelect label="日期选择" bind="dateType" :dict="DICT.DATE" hasLabel noClear narrow />

    <ParamMonth v-if="param.dateType === 1" label="月份" bind="statisticTime" format history noClear narrow />
    <ParamYear v-else-if="param.dateType === 3" label="年份" bind="statisticTime" format history noClear narrow />

    <ParamSelect bind="energyType" :dict="DICT.TYPE" noClear narrow @change="toChange" />
  </WebSearch>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import MySearch from '../../AnalysisYear/MySearch'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MySearch',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [
    CORE.mixWeb(),
    CORE.mixTree('point', 'point_'),
    CORE.mixTree('category', 'category_'),
  ],

  /**
   * 本地方法 (轻量重要在前)
   */
  methods: MySearch.methods,
}
</script>
